package com.example.android_three.mvp.control

import com.example.android_three.mvp.entity.BaseEntity
import com.example.android_three.wieget.Constant
import com.jess.arms.mvp.IModel
import com.jess.arms.mvp.IView
import io.reactivex.Observable

interface LreControl {
    
    interface LreControlView : IView {

        fun onSuccess(data: BaseEntity)

        fun onRefresh(data: BaseEntity)

        fun onLoading(data: BaseEntity)
    }
    
    interface LreControlModel : IModel {

        fun netWorkList( parm : String, constant: Constant) : Observable<BaseEntity>

        fun refreshList( parm : String, constant: Constant) : Observable<BaseEntity>

        fun loadingList( parm : String, constant: Constant) : Observable<BaseEntity>
    }
    
}